home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
pt20pc.zip
/
TEST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-02-04
|
409b
|
25 lines
#include "dos.h"
main(argc, argv)
char *argv[];
{
union REGS regs, cregs;
long i, max;
int fid;
max = atoi(argv[1]);
for(i = 0; i < max; ++i) {
if( argc == 2 ) {
regs.h.ah = 0x3D; /* open file */
regs.h.al = (char)0;
regs.x.dx = (int)"test.c";
intdos(®s, ®s);
cregs.x.bx = regs.x.ax;
cregs.h.ah = 0x3E;
intdos(&cregs, &cregs);
}
}
exit(0);
}